package day08;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:
 * @date 2019/7/24 0024
 */
public class TestShape {
    public static void main(String[] args) {
//        Shape s = new Shape() {
//            //匿名内部类
//            @Override
//            public double girth() {
//                return 0;
//            }
//        };

        //Shape s = new Shape();//抽象类是不能够被实例化的

        Shape s = new Rect(10,15);

        System.out.println(s.girth());
    }
}
